import request from '@/utils/request'

// 查询申请新实验列表
export function listExperiment(query) {
  return request({
    url: '/experiment/experiment/list',
    method: 'get',
    params: query
  })
}

// 查询申请新实验详细
export function getExperiment(newExperimentId) {
  return request({
    url: '/experiment/experiment/' + newExperimentId,
    method: 'get'
  })
}

// 新增申请新实验
export function addExperiment(data) {
  return request({
    url: '/experiment/experiment',
    method: 'post',
    data: data
  })
}

// 修改申请新实验
export function updateExperiment(data) {
  return request({
    url: '/experiment/experiment',
    method: 'put',
    data: data
  })
}

// 删除申请新实验
export function delExperiment(newExperimentId) {
  return request({
    url: '/experiment/experiment/' + newExperimentId,
    method: 'delete'
  })
}
